﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>库存查询</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="css/add-style.css" rel="stylesheet">
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div id="part1" class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>仓库目录</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="input-group">
                            <input type="text" placeholder="查找分类" class="input form-control input-sm">
                            <span class="input-group-btn">
                                <button type="button" class="btn btn btn-success btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</button>
                            </span>
                        </div>
                        <div id="jstree2" style="margin: 10px 0 0 -10px;">
                            <ul>
                                <li>恒富总仓库
                                    <ul>
                                        <li data-jstree='{"type":"icon"}'>富力家园服务处仓库
                                              <ul>
                                                  <li data-jstree='{"type":"son"}'>办公用品</li>
                                                  <li data-jstree='{"type":"son"}'>安保用品</li>
                                                  <li data-jstree='{"type":"son"}'>文具</li>
                                              </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>爱丁堡服务处仓库
                                        <ul>
                                            <li data-jstree='{"type":"son"}'>办公用品</li>
                                            <li data-jstree='{"type":"son"}'>安保用品</li>
                                            <li data-jstree='{"type":"son"}'>文具</li>
                                        </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>富力新城仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>

                                    </ul>
                                </li>
                                <li>地产总仓库
                                    <ul>
                                        <li data-jstree='{"type":"icon"}'>双子座仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>富力中心仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>天鹅湾仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-9">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>仓库材料</h5>
                        <div class="pull-right" style="margin: -7px 5px 0 0">
                            <button class="btn btn-info btn-sm" type="button"><i class="fa fa-random"></i><span class="bold">&nbsp;导出</span></button>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <table class="table table-border0">
                            <tbody>
                                <tr>
                                    <td style="width:84px;" class="client-link text-right">材料类别</td>
                                    <td width="25%">
                                        <div class="input-group">
                                            <input type="text" placeholder="请选择..." class="input-sm form-control">
                                            <span class="input-group-btn">
                                                <a data-toggle="modal" href="storage_in.html#modal-goodtypetree" class="btn btn-success btn-sm"><i class="fa fa-check-square-o"></i>&nbsp;选择 </a>
                                            </span>
                                        </div>
                                    </td>
                                    <td style="padding-right:0;">
                                        <select data-placeholder="查询条件..." class="chosen-select form-control input-sm" tabindex="2" style="width:120px;float:left;">
                                            <option value="110000" hassubinfo="true" selected="selected">编号</option>
                                            <option value="120000" hassubinfo="true">名称</option>
                                            <option value="130000" hassubinfo="true">供应商</option>
                                        </select>
                                        <div class="input-group">
                                           
                                            <input type="text" placeholder="请输入..." class="input-sm form-control">
                                            <span class="input-group-btn">
                                                <button type="button" class="btn btn-sm btn-success"><i class="fa fa-search"></i>&nbsp;搜索</button>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                </tr>
                            </tbody>
                        </table>
                        <table class="table table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>类别</th>
                                    <th>名称</th>
                                    <th>编号</th>
                                    <th>单位</th>
                                    <th>品牌和规格</th>
                                    <th>库存</th>
                                    <th>金额</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>办公用品</td>
                                    <td>电话机</td>
                                    <td>8001</td>
                                    <td>部</td>
                                    <td>西门子800</td>
                                    <td class="client-status">
                                        <span class="label label-primary ">3</span>
                                    </td>
                                    <td>7954.87
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>安保用品</td>
                                    <td>白手套</td>
                                    <td>8002</td>
                                    <td>双</td>
                                    <td>白色800</td>
                                    <td class="client-status">
                                        <span class="label label-primary ">3</span>
                                    </td>
                                    <td>7954.87
                                    </td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>保洁用品</td>
                                    <td>洗手液</td>
                                    <td>8003</td>
                                    <td>箱</td>
                                    <td>西门子舒肤佳</td>
                                    <td class="client-status">
                                        <span class="label label-primary ">3</span>
                                    </td>
                                    <td>7954.87
                                    </td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <th>合计</th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th>73954.87</th>
                                </tr>
                            </tfoot>
                        </table>
                        <div class="text-right">
                            <ul class="pagination">
                                <li><a href="#">&laquo;</a></li>
                                <li><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li><a href="#">&raquo;</a></li>
                                <li><a href="#">页数：1/10</a></li>
                                <li><a href="#">总记录数：1000</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

     <div id="modal-goodtypetree" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
							<h5 class="modal-title">选择材料类别</h5>
						</div>
						<div class="modal-body">
                             <div id="jstree3" style="margin: 10px 0 0 -10px;">
                            <ul>
                                <li>恒富总仓库
                                    <ul>
                                        <li data-jstree='{"type":"icon"}'>富力家园服务处仓库
                                              <ul>
                                                  <li data-jstree='{"type":"son"}'>办公用品</li>
                                                  <li data-jstree='{"type":"son"}'>安保用品</li>
                                                  <li data-jstree='{"type":"son"}'>文具</li>
                                              </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>爱丁堡服务处仓库
                                        <ul>
                                            <li data-jstree='{"type":"son"}'>办公用品</li>
                                            <li data-jstree='{"type":"son"}'>安保用品</li>
                                            <li data-jstree='{"type":"son"}'>文具</li>
                                        </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>富力新城仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>

                                    </ul>
                                </li>
                                <li>地产总仓库
                                    <ul>
                                        <li data-jstree='{"type":"icon"}'>双子座仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>富力中心仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>天鹅湾仓库
                                            <ul>
                                                <li data-jstree='{"type":"son"}'>办公用品</li>
                                                <li data-jstree='{"type":"son"}'>安保用品</li>
                                                <li data-jstree='{"type":"son"}'>文具</li>
                                            </ul>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary demo2">确定</button>
						</div>
					</div>
				</div>
			</div>
    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>
    <script src="js/common.js"></script>

    <!-- Chosen -->
    <script src="js/plugins/chosen/chosen.jquery.js"></script>
    <!-- jsTree plugin javascript -->
    <script src="js/plugins/jsTree/jstree.min.js"></script>

    <style>
        .jstree-open > .jstree-anchor > .fa-folder:before {
            content: "\f07c";
        }

        .jstree-default .jstree-icon.none {
            width: 0;
        }
    </style>
    <!--控制页面树元素-->
    <script>
        $(document).ready(function () {
            function demo_rename() {
                var ref = $('#jstree2').jstree(true),
                    sel = ref.get_selected();
                if (!sel.length) { return false; }
                sel = sel[0];
                ref.edit(sel);
            };
            $('#jstree2').jstree({
                'core': {
                    'check_callback': true
                },
                'plugins': ['types', 'dnd'],
                'types': {
                    'default': {
                        'icon': 'fa fa-folder'
                    },
                    'html': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'svg': {
                        'icon': 'fa fa-file-picture-o'
                    },
                    'css': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'img': {
                        'icon': 'fa fa-file-image-o'
                    },
                    'son': {
                        'icon': 'fa fa-file-text-o'
                    }

                }
            });
        });
       

    </script>
       <script>
        $(document).ready(function () {
            function demo_rename() {
                var ref = $('#jstree3').jstree(true),
                    sel = ref.get_selected();
                if (!sel.length) { return false; }
                sel = sel[0];
                ref.edit(sel);
            };
            $('#jstree3').jstree({
                'core': {
                    'check_callback': true
                },
                'plugins': ['types', 'dnd'],
                'types': {
                    'default': {
                        'icon': 'fa fa-folder'
                    },
                    'html': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'svg': {
                        'icon': 'fa fa-file-picture-o'
                    },
                    'css': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'img': {
                        'icon': 'fa fa-file-image-o'
                    },
                    'son': {
                        'icon': 'fa fa-file-text-o'
                    }

                }
            });
        });
       

    </script>
       <!-- Chosen -->
    <script src="js/plugins/chosen/chosen.jquery.js"></script>
    <script>
        var config = {
            ".chosen-select": {},
            ".chosen-select-deselect": {
                allow_single_deselect: true
            },
            ".chosen-select-no-single": {
                disable_search_threshold: 10
            },
            ".chosen-select-no-results": {
                no_results_text: "Oops, nothing found!"
            },
            ".chosen-select-width": {
                width: "95%"
            }
        };
        for (var selector in config) {
            $(selector).chosen(config[selector])
        }

    </script>
    <script>
        $(function () {
            $('.full-height-scroll').slimScroll({
                height: '100%'
            });
        });
    </script>
    <script>
//使页面中所有.modal元素在窗口可视范围之内居中        function centerModals() {
            $('.modal').each(function (i) {
                var $clone = $(this).clone().css('display', 'block').appendTo('body');
                var top = Math.round(($clone.height() - $clone.find('.modal-content').height()) / 2);
                top = top > 50 ? top : 0;
                $clone.remove();
                $(this).find('.modal-content').css("margin-top", top - 50);
            });
        }
        // 在模态框出现的时候调用垂直居中函数
        $('.modal').on('show.bs.modal', centerModals);
        // 在窗口大小改变的时候调用垂直居中函数
        $(window).on('resize', centerModals);
    </script>

    <!-- Sweet alert -->
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        //保存成功弹框
        $('.demo2').click(function () {

            swal({
                title: "保存成功！",
                type: "success"
            });
        });
        //-- 删除弹框--
        $('.demo4').click(function () {
            swal({
                title: "您确定要删除这条信息吗",
                text: "删除后将无法恢复，请谨慎操作！",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "删除",
                closeOnConfirm: false
            }, function () {
                swal("删除成功！", "您已经永久删除了这条信息。", "success");
            });
        });
    </script>

</body>
</html>
